package com.example.demo.model;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

@lombok.Data
public class AnnotationDemo {

    @NotNull(message = "Name cannot be null")
    private String name;

    @Min(value = 18, message = "Age must be greater than or equal to 18")
    private int age;


}
